#ifndef LOGWINDOW_H
#define LOGWINDOW_H


#include <QDialog>
#include <QDir>
#include <QFile>
#include <QDebug>
#include <QDomComment>
#include <QPrinter>

namespace Ui {
class LogWindow;
}

class LogWindow : public QDialog
{
    Q_OBJECT

public:
    explicit LogWindow(QWidget *parent = nullptr);
    ~LogWindow();
    void RightMenu();

private slots:

    void on_pushButton_leading_out_2_clicked();

    void on_pushButton_print_clicked();
    void printPreviewSlot(QPrinter*);
    void PrintClicked();
    void PreviewClicked();
    void PdfClicked();


private:
    Ui::LogWindow *ui;
    void readXml(QString);
    void readRootXml(QDomNodeList sonNodeList);
    void setHeader();
    void DelLog();
};

#endif // LOGWINDOW_H
